package com.gebogebo.android.justads;

import android.util.Log;

import com.millennialmedia.android.BasicMMAdListener;
import com.millennialmedia.android.MMAdView;

public class MilleniaAdListener extends BasicMMAdListener {
    private AdEventsListener listener;
    
    public MilleniaAdListener(AdEventsListener listener) {
        this.listener = listener;
    }

    @Override
    public void MMAdFailed(MMAdView adview) {
        super.MMAdFailed(adview);
        Log.i("millenia", "millenia ad failed to load");
        listener.adFailed();
    }

    @Override
    public void MMAdReturned(MMAdView adview) {
        super.MMAdReturned(adview);
        Log.i("millenia", "millenia ad received successfully");
        listener.adReceived();
    }
}